package com.senlingspace.system.service.impl;

import com.senlingspace.system.domain.vo.OrderSplitRequest;
import com.senlingspace.system.domain.vo.OrderSplitResponse;
import com.senlingspace.system.mapper.OrderSplitMapper;
import com.senlingspace.system.service.OrderSplitService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

import static com.senlingspace.common.utils.PageUtils.startPage;

@Service
public class OrderSplitServiceImpl implements OrderSplitService {

    @Autowired
    private OrderSplitMapper orderSplitMapper;

    @Override
    public List<OrderSplitResponse> getOrderSplitData(OrderSplitRequest request) {
        startPage();
        List<OrderSplitResponse> orderSplitResponses = orderSplitMapper.queryOrderSplitData(request);
        return orderSplitResponses;
    }
}
